<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>个人信息管理</title>
		<jsp:include page="../common/xmeta.jsp"></jsp:include>
		<link rel="stylesheet" href="../css/tables.css" type="text/css"></link>
		<script type="text/javascript" src="js/personalInfo.js"></script>

	</head>

	<body>
		<br>
		<form id="updateInfo" method="post" action="iemployee!updateUserInfo.action">
			<table width="80%" class="tab_border" align="center">
				<caption>
					<h3>
						个人信息管理
					</h3>
				</caption>

				<tr>
					<td width="17%">
						登陆名：
					</td>
					<td>
						<label>
							${employee.loginAccount}
						</label>
						<input type="hidden" value="${employee.empID}" name="employee.empID" id="empID">
					</td>

					<td width="17%">
						密码：
					</td>

					<td>
						<b>******</b>
					</td>
				</tr>


				<tr>
					<td width="17%">
						真实姓名：
					</td>
					<td>
						<input type="text" id="empName" name="employee.empName" value="${employee.empName}">
						<span style="color: #DB3632;">*</span>
					</td>

					<td width="17%">
						联系电话：
					</td>
					<td>
						<input type="text" value="${employee.linkPhone }" id="linkPhone" name="employee.linkPhone">
						<span style="color: #DB3632;">*</span>
					</td>
				</tr>

				<tr>
					<td width="17%">
						邮箱：
					</td>
					<td>
						<input type="text" value="${employee.email }" id="email" name="employee.email">
						<span style="color: #DB3632;">*</span>
					</td>
					<td width="17%">
						身份 ：
					</td>
					<td>
						<select id="userType" name="employee.userType">
							<option value="0" <s:if test="#request.employee.userType == 0">
									selected="selected"
								</s:if>>
								院内
							</option>
							<option value="2" <s:if test="#request.employee.userType == 2">
									selected="selected"
								</s:if>>
								校外
							</option>
							<option value="1">
								<s:if test="#request.employee.userType == 1">
								selected="selected"
								</s:if>
								校内
							</option>
						</select>
						<span style="color: #DB3632;">*</span>
					</td>
				</tr>


				<tr>
					<td width="17%">
						性别：
					</td>
					<td>
						<input type="radio" name="employee.sex" id="sex" value="男"
							<s:if test="#request.employee.sex == \"男\"">
								checked="checked"
							</s:if>>
						男
						<input type="radio" name="employee.sex" id="sex" value="女"
							<s:if test="#request.employee.sex == \"女\"">
								checked="checked"
							</s:if>>
						女
					</td>
					<td width="17%">
						手机 ：
					</td>
					<td>
						<input type="text" value="${employee.mobilePhone}" id="mobilePhone" name="employee.mobilePhone">
					</td>
				</tr>

				<tr>
					<td width="17%">
						所属课题组：
					</td>
					<td>
						<s:if test="#request.employee.deptName != null">
								${employee.deptName }
						</s:if>
						<s:else>
								暂不属于课题组
						</s:else>
						<input type="hidden" value="${employee.deptID}" name="employee.deptID" id="deptID"> 
					</td>
					<td width="17%">
						工作单位：
					</td>
					<td>
						<input type="text" name="employee.workEntity" id="workEntity" autocomplete="off" value="${employee.workEntity}"
							style="width: auto">
							
							<span style="color: #DB3632;">*</span>
						<br>
					</td>
				</tr>

				<tr>
					<td width="17%">
						身份证号：
					</td>
					<td>
						<input type="text" value="${employee.idCard}" name="employee.idCard" id="idCard">
					</td>
					<td width="17%">
						文化程度：
					</td>
					<td>
						<select name="employee.education" id="education">
							<option value=""
								<s:if test="#request.employee.education == null">
									selected="selected"
								</s:if>
							>
								--未知--
							</option>
							<option value="0"
								<s:if test="#request.employee.education == 0">
									selected="selected"
								</s:if>
							>
								文盲
							</option>
							<option value="1"
								<s:if test="#request.employee.education == 1">
									selected="selected"
								</s:if>
							>
								小学
							</option>
							<option value="2"
								<s:if test="#request.employee.education == 2">
									selected="selected"
								</s:if>
							>
								初中
							</option>
							<option value="3"
								<s:if test="#request.employee.education == 3">
									selected="selected"
								</s:if>							
							>
								高中
							</option>
							<option value="4"
								<s:if test="#request.employee.education == 4">
									selected="selected"
								</s:if>
							>
								大专
							</option>
							<option value="5"
								<s:if test="#request.employee.education == 5">
									selected="selected"
								</s:if>
							>
								本科
							</option>
							<option value="6"
								<s:if test="#request.employee.education == 6">
									selected="selected"
								</s:if>
							>
								硕士
							</option>
							<option value="7"
								<s:if test="#request.employee.education == 7">
									selected="selected"
								</s:if>
							>
								博士
							</option>
							<option value="8"
								<s:if test="#request.employee.education == 8">
									selected="selected"
								</s:if>
							>
								博士后
							</option>
						</select>
					</td>
				</tr>

				<tr>
					<td width="17%">
						备注：
					</td>
					<td colspan="3">
						<input type="text"  id="remark" name="employee.remark" style="width: 100%" value="${employee.remark}">
					</td>
				</tr>

				<tr>
					<td colspan="4" align="center">
						<a href="#" class="easyui-linkbutton" iconCls="icon-save" onclick="doSubmit()">保存</a>
						<a href="#" class="easyui-linkbutton" iconCls="icon-cancel" onclick="closeTab()">关闭</a>
					</td>
				</tr>
			</table>
		</form>
	</body>
</html>
